{include file="Public:header" /}

		<div class="bar bar-nav">
			<h1 class="title">详情</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		
		<nav class="bar bar-tab">
			<a class="tab-item active" href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item" href="tel:{$data['phone_number']}">
				<span class="icon iconfont icon-phone"></span>
				<span class="tab-label">咨询</span>
			</a>
			{if condition="$apply_show"}
			<a class="tab-item" href="{:U('Index/applyUserType')}">
				<span class="icon iconfont icon-renshu"></span>
				<span class="tab-label">我要入会</span>
			</a>
			{/if}
		</nav>

		<div class="content">
			<div class="content-block mechan_page_top text-center">
				<p class="item-title"><img src="{$data['card_img']}" style="width: 4rem;"></p>
				<p>{$data['full_name']}</p>
				<p>{$data['phone_number']}</p>
				<p><span>{$act_count[0]|default="0"}场活动</span>|<span>{$act_count[1]|default="0"}人参加</span></p>
				<p>{$data['autograph']|htmlspecialchars_decode}</p>
			</div>
			
			<div class="buttons-tab mechan-page-tab " style="margin-top:0px;">
				<a href="#tab1" class="tab-link active button">进行中的活动</a>
				<a href="#tab2" class="tab-link button">全部活动</a>
				<a href="#tab3" class="tab-link button">个人简介</a>
			</div>
			<div class="content-block row in_tab_list">
				<div class="tabs">
					<div id="tab1" class="tab in_hot_box activity_1 active">
						<div id="conduct">
						{foreach name="activity" item="activity" key="k"}
						<div class="card demo-card-header-pic">
							<a href="{:U('ActivityDetail/index', array('activity_id'=>$activity['id'],'city'=>$activity['city']))}">
							<div valign="bottom" class="card-header color-white no-border no-padding">
								<img class='card-cover' src="{$activity['activity_img']}" alt="">
							</div>
							<div class="card-content">
								<div class="card-content-inner">
									<p class="hot_list_title">{$activity['activity_name']}</p>
									<p class="color-gray">{$activity['start_time']|date="Y-m-d",###} 至 {$activity['end_time']|date="Y-m-d",###}</p>
									<p class="color-gray"><span>{$activity['area']}</span><span>{$activity['signup_number']}人已报名</span><span>￥{$activity['price']}</span></p>
								</div>
							</div>
							</a>
						</div>
						{/foreach}
						</div>
						{if condition="$conduct_show"}
						<div class="infinite-scroll-preloader" id="conduct_quan" style="display:none;">
							<div class="preloader"></div>
						 </div>
						<p onclick="ajax_conduct_submit();" class="conduct_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
						{else/}
						<p id="load_more"> 暂无数据！</p>
						{/if}
					</div>
					
					
					<div id="tab2" class="tab in_hot_box activity_1">
						<div id="all_activity">
						{foreach name="all_activity" item="all" key="k"}
						<div class="card demo-card-header-pic">
							<a href="{:U('ActivityDetail/index', array('activity_id'=>$all['id'],'city'=>$all['city']))}">
							<div valign="bottom" class="card-header color-white no-border no-padding">
								<img class='card-cover' src="{$all['activity_img']}" alt="">
							</div>
							<div class="card-content">
								<div class="card-content-inner">
									<p class="hot_list_title">{$all['activity_name']}</p>
									<p class="color-gray">{$all['start_time']|date="Y-m-d",###} 至 {$all['end_time']|date="Y-m-d",###}</p>
									<p class="color-gray"><span>{$all['area']}</span><span>{$all['signup_number']}人已报名</span><span>￥{$all['price']}</span></p>
								</div>
							</div>
							</a>
						</div>
						{/foreach}
						</div>
						{if condition="$all_show"}
						<div class="infinite-scroll-preloader" id="all_quan" style="display:none;">
							<div class="preloader"></div>
						 </div>
						<p onclick="ajax_all_submit();" class="all_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
						{else/}
						<p id="load_more"> 暂无数据！</p>
						{/if}
					</div>
					
					
					<div id="tab3" class="tab">
						<div class="list-block mechan_user" style="margin-top:.5rem;">
						 	<div class="card demo-card-header-pic" style="text-indent: 2rem;padding:10px 10px;">
						 		{$data['introduce']|htmlspecialchars_decode}
							</div> 
						 </div>
					</div>
				</div>
			</div>
			
		</div>
		
{include file="Public:footer" /}

<script>
var  page_conduct = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_conduct_submit()
{	 	 	 
	    $("#conduct_quan").show();
	    page_conduct += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/conductActivity/is_ajax/1/p/"+page_conduct,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#conduct_quan").hide();
				if($.trim(data) == ''){
					$('.conduct_more').hide();
				}else{
				    $("#conduct").append(data);
				}
			}
		}); 
} 
var  page_all = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_all_submit()
{	 	 	 
	    $("#all_quan").show();
	    page_all += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/allActivity/is_ajax/1/p/"+page_all,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#all_quan").hide();
				if($.trim(data) == ''){
					$('.all_more').hide();
				}else{
				    $("#all_activity").append(data);
				}
			}
		}); 
} 
</script>